package vn.co.thn.web.demo_app_engine.jpa;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@Entity
public class Menu {
	@Id
	private String Key;//Store_Key Id
	private int Store_Id;
	private int Id;//Stt
	private String Name;
	private double Price;
	private String Image_Url;
	public int getStore_Id() {
		return Store_Id;
	}
	public void setStore_Id(int store_Id) {
		Store_Id = store_Id;
	}
	public int getId() {
		return Id;
	}
	public void setId(int id) {
		Id = id;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public double getPrice() {
		return Price;
	}
	public void setPrice(double price) {
		Price = price;
	}
	public String getImage_Url() {
		return Image_Url;
	}
	public void setImage_Url(String image_Url) {
		Image_Url = image_Url;
	}
	public String getKey(){
		return this.Key;
	}
	@Transient
	public void CreateKey() {
		this.Key=this.Store_Id+""+this.Id;
	}
	
}
